{% extends 'admin/base.html.twig' %}

{% block title %}Conference list{% endblock %}

{% block body %}
    <h2>Conference list</h2>
    {% if conferences|length > 0 %}
        {% for conference in conferences %}
            <h4>{{ conference }}</h4>
            <p>
                <a href="{{ path('rs_admin_conference_exit',{'slug':conference.slug }) }}">exit</a>
            </p>
            <p>
                <a href="{{ path('admin_comment_list',{'slug':conference.slug }) }}">comments</a>
            </p>
        {% endfor %}
        {% if previous >= 0 %}
            <a href="{{ path('admin_conference_list', { offset: previous }) }}">Previous</a>
        {% endif %}
        {% if next < conferences|length %}
            <a href="{{ path('admin_conference_list', { offset: next }) }}">Next</a>
        {% endif %}
    {% else %}
        <div>No comments have been posted yet for this conference.</div>
    {% endif %}
{% endblock %}